# -*- coding: utf-8 -*-
# !/usr/bin/env python
from rest_framework.views import APIView
from components.deploy.soft_release.dao import query_env_host_soft
from general.sys_code import get_syscode_father_data
from utils.views import Result

class GetInstallConfsRequire(APIView):
    def get(self, request):
        data = request.query_params
        host_data_list = get_syscode_father_data(data['sys_code'], data['type'])
        return Result.success_response(data=host_data_list, msg='查询成功')